package org.cuatrovientos.erp.model;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

public class Product {
@Min(value=1,message="{product.id.error}")	
private int id;
@NotNull(message="{product.name.error}")
 private String name;
@NotNull(message="{product.description.error}")
private String description;
@Min(value=1,message="{product.price.error}")	
private double price;
@Min(value=1,message="{product.idproducttype.error}")	
private int idproducttype;


public Product(int id, String name, String description, double price,
		int idproducttype) {
	super();
	this.id = id;
	this.name = name;
	this.description = description;
	this.price = price;
	this.idproducttype = idproducttype;
}

public Product(){
	
}


public int getId() {
	return id;
}
public void setId(int id) {
	this.id = id;
}
public String getName() {
	return name;
}
public void setName(String name) {
	this.name = name;
}
public String getDescription() {
	return description;
}
public void setDescription(String description) {
	this.description = description;
}
public double getPrice() {
	return price;
}
public void setPrice(double price) {
	this.price = price;
}
public int getIdproducttype() {
	return idproducttype;
}
public void setIdproducttype(int idproducttype) {
	this.idproducttype = idproducttype;
}

}
